﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameHelp
{

    public static List<AutoData> Getdatas(string data,int MapIndex)
    {
        List<AutoData> dataList = new List<AutoData>();
        foreach (var item in LoadCSV.LoadCsvFromString(data))
        {
            AutoData tmp = new AutoData(item.Key,item.Value,MapIndex);
            dataList.Add(tmp);
        }
        return dataList;
    }

}
